import request from '@/router/axios';

const BASEURL = "/auth"

export const login = (form) => {
    return request({
        url: BASEURL + '/login',
        method: 'post',
        data: form
    })
}
export const getUserInfo = () => {
    return request({
        url: BASEURL + '/getUserInfo',
        method: 'get',
    })
}

export const getCode = () => {
    return request({
        url: BASEURL + '/captchaImage',
        method: 'get',
    })
}
